package ${serviceUrl};

import java.util.List;
import ${entityUrl}.${entityName};
import ${entityDtoUrl}.${entityName}Dto;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.metadata.IPage;


/**   
 * ${entityComment}服务层
 */
public interface ${entityName}Service extends IService<${entityName}> {

    /**
    *  新增对象
    *
    * @param ${objectName}Dto
    * @return
    */
    void save(${entityName}Dto ${objectName}Dto);

    /**
    * 更新对象
    *
    * @param ${objectName}Dto
    */
    void updateById(${entityName}Dto ${objectName}Dto);

    /**
    * 通过主健id查询对象
    *
    * @param id
    * @return
    */
    ${entityName}Dto getById(Long id);

    /**
    * 条件查询列表
    *
    * @param ${objectName}DtoSearch
    * @return List<${entityName}Dto>
    */
    List<${entityName}Dto> listSearch(${entityName}Dto ${objectName}DtoSearch);

    /**
    * 分页条件查询列表
    *
    * @param page
    * @param ${objectName}DtoSearch
    * @return IPage<${entityName}Dto>
    */
    IPage<${entityName}Dto> pageSearch(Page<${entityName}> page, ${entityName}Dto ${objectName}DtoSearch);

    /**
    * 条件查询记录数
    *
    * @param ${objectName}DtoSearch
    * @return Long
    */
    Long countSearch(${entityName}Dto ${objectName}DtoSearch);
}